/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */
package prueba;

import java.util.Objects;

/**
 *
 * @author moises sepulveda
 */
public class Persona {
    
    private String hola;
        private String chao;
        private int x;
        private int y;
        private int z;

    public Persona(String hola, String chao, int x, int y, int z) {
        this.hola = hola;
        this.chao = chao;
        this.x = x;
        this.y = y;
        this.z = z;
    }

    public String getHola() {
        return hola;
    }

    public void setHola(String hola) {
        this.hola = hola;
    }

    public String getChao() {
        return chao;
    }

    public void setChao(String chao) {
        this.chao = chao;
    }

    public int getX() {
        return x;
    }

    public void setX(int x) {
        this.x = x;
    }

    public int getY() {
        return y;
    }

    public void setY(int y) {
        this.y = y;
    }

    public int getZ() {
        return z;
    }

    public void setZ(int z) {
        this.z = z;
    }

    @Override
    public String toString() {
        return "Persona{" + "hola=" + hola + ", chao=" + chao + ", x=" + x + ", y=" + y + ", z=" + z + '}';
    }

    @Override
    public int hashCode() {
        int hash = 3;
        return hash;
    }

    @Override
    public boolean equals(Object obj) {
        if (obj == null) {
            return false;
        }
        if (getClass() != obj.getClass()) {
            return false;
        }
        final Persona other = (Persona) obj;
        if (!Objects.equals(this.hola, other.hola)) {
            return false;
        }
        if (!Objects.equals(this.chao, other.chao)) {
            return false;
        }
        if (this.x != other.x) {
            return false;
        }
        if (this.y != other.y) {
            return false;
        }
        if (this.z != other.z) {
            return false;
        }
        return true;
    }
        
        
}
